﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>My JSP 'add.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <link rel="stylesheet" th:href="@{/css/jquery-ui.css}">

    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
    <script type="text/javascript" th:src="@{/js/eye-base.js}"></script>
    <script type="text/javascript" th:src="@{/js/eye-all.js}"></script>
    <!--<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-ui-1.10.4.custom.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.ui.datepicker-zh-CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-ui-timepicker-addon.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-ui-timepicker-zh-CN.js"></script>-->

  </head>
  
 <body>
   <div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 增加放映信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" th:action="@{/borad/addBorad}">
     
    <table style="font-size: 13px;" >
    	 <tr>
    	<td style="text-indent: 93px;">
    	 	电影信息&nbsp;：&nbsp;
    	 </td>
     	<td>
     		 <select name="fid" id="movies-type">
      		</select>  
     	</td>
     </tr>
    </table>
    <br/>
    
     <table style="font-size: 13px;">
    	 <tr>
    	 <td style="text-indent: 93px;">
    	 	大厅信息&nbsp;：&nbsp;
    	 </td>
     	<td>
     		 <select name="tid" id="dating-type">

      		</select>  
     	</td>
     </tr>
    </table>
    <br/>
    
    <table style="font-size: 13px;">
    	 <tr>
    	 <td style="text-indent: 93px;">
    	 	员工信息&nbsp;：&nbsp;
    	 </td>
     	<td>
     		 <select name="eid" id="emp-type">

      		</select>  
     	</td>
     </tr>
    </table>
    <br/>

      <div class="form-group">
        <div class="label">
          <label>开始时间：</label>
        </div>
        <div class="field">
<!--          <%&#45;&#45;<textarea class="input" name="begintime" id="begintime" style="height:45px"  ></textarea>-->
<!--          &#45;&#45;%>-->
            <textarea name="begintime"  id="begintime" class="input" style="height:45px" onClick="eye.datePicker.show(begintime);"></textarea>
          	
          <div class="tips"></div>
        </div>
      </div>
      
<!-- <script type="text/javascript">-->
<!--	$( "input[name='begintime'],input[name='act_stop_time']" ).datetimepicker();-->
<!--</script>-->
      
        <div class="form-group">
        <div class="label">
          <label>结束时间：</label>
        </div>
        <div class="field">
<!--          <textarea class="input" name="endtime" id="endtime" style="height:45px"  ></textarea>-->
<!--          &#45;&#45;%>-->
            <textarea name="endtime" id="endtime" onClick="eye.datePicker.show(endtime);" class="input" style="height:45px"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      
<!-- <script type="text/javascript">-->
<!--	$( "input[name='endtime'],input[name='act_stop_time']" ).datetimepicker();-->
<!--</script>-->
              
      <div class="form-group">
        <div class="label">
          <label>票价：</label>
        </div>
        <div class="field">
          <input name="xmoney" class="input" id="xmoney" style="height:45px;"  />
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
<script>
    $(function(){
        $.get("../gson/fimlGson",{
            fflag : 1
        },function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                gsonText += '<option value="'+n.fid+'">' +
                    n.fname +
                    '</option>';
            });
            $('#movies-type').append(gsonText);
        });
        $.get("../gson/hallGson",function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                gsonText += '<option value="'+n.tid+'">' +
                    n.tname +
                    '</option>';
            });
            $('#dating-type').append(gsonText);
        });
        $.get("../gson/empGson",function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                gsonText += '<option value="'+n.eid+'">' +
                    n.ename +
                    '</option>';
            });
            $('#emp-type').append(gsonText);
        });
    });
</script>
</html>
